package com.itheima.controller;

import com.itheima.manager.SmsHomeManager;
import com.itheima.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/home")
public class SmsHomeController {

    @Autowired
    SmsHomeManager smsHomeManager;

    //品牌推荐分页
    @GetMapping("/brand/list")
    public R findByPage(Integer pageNum, Integer pageSize,String brandName,Integer recommendStatus){
        return smsHomeManager.findByPage(pageNum,pageSize,brandName,recommendStatus);
    }

}
